import React          from 'react';
import RcPagination   from 'rc-pagination';
import 'rc-pagination/dist/rc-pagination.css';

// 通用分页组件
export default class Pagination extends React.Component {
  constructor(props) {
    super(props);
  };
  render() {
    return (
      <div className="row">
        <div className="col-md-12">
          {/* 结构函数 {...this.props} */}
          <RcPagination {...this.props} 
            hideOnSinglePage
            showQuickJumper
          />
        </div>
      </div>
    )
  }
}